<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
        <th:block th:if="${students==null || students.size()==0}">
            <tr >
                <td align="center" colspan="6">没有查询到任何信息</td>
            </tr>
        </th:block>
        <tr style="line-height: 10px;" th:each="student:${students}">
            <td style="width: 10%;height: 10px" ><input th:value="${student.grade+'-'+student.major+'-'+student.class_no+'-'+student.code}" type="checkbox"/></td>
            <td style="width: 10%" th:text="${studentStat.index+1}"></td>
            <td style="width: 10%" th:text="${student.code}"></td>
            <td style="width: 10%" th:text="${student.sname}"></td>
            <td style="width: 20%" th:text="${student.grade+'-'+student.major+'-'+student.class_no}"></td>
            <td style="width: 40%">
                <span>
                    <button th:onclick="studentPage.edit([[${student.code}]])"  class="button btn-default">编辑</button>
                </span>
                <span>
                    <button th:onclick="studentPage.deleteClassStudent([[${student.grade+'-'+student.major+'-'+student.class_no+'-'+student.code}]])" class="button btn-default">删除</button>
                </span>
            </td>
        </tr>
</html>